package com.sportsforce.client;

import com.google.gwt.maps.client.geom.LatLng;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.sportsforce.client.map.Map;
import com.sportsforce.client.search.UserNameSearch;

public class SportsForceTracking extends VerticalPanel {

	public static VerticalPanel vpMap = new VerticalPanel();

	public SportsForceTracking() {

		this.setSize("100%", "100%");
		this.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
		this.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);

		vpMap.setSize("100%", "100%");
		vpMap.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
		vpMap.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);

		this.add(new UserNameSearch());

		LatLng us = LatLng.newInstance(37.02, -95.62);

		vpMap.add(Map.getMap(us, 4));

		this.add(vpMap);

		RootPanel.get().add(this);
	}
}
